@import '~antd/es/style/themes/default.less';

.main {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  width: 400px;
  padding: 35px;

  @media screen and (max-width: @screen-sm) {
    width: 95%;
  }

  .icon {
    margin-left: 16px;
    color: rgba(0, 0, 0, 0.2);
    font-size: 24px;
    vertical-align: middle;
    cursor: pointer;
    transition: color 0.3s;

    &:hover {
      color: @primary-color;
    }
  }

  .other {
    margin-top: 24px;
    line-height: 22px;
    text-align: left;

    .register {
      float: right;
    }
  }

  :global {
    .antd-pro-login-submit {
      width: 100%;
      margin-top: 24px;
    }
  }

  .loginTab {
    .loginTab_title {
      font-size: 20px;
      line-height: 32px;
      color: #505050;
      margin-bottom: 10px;
    }
  }

  .changeTab_btn {
    position: absolute;
    width: 50px;
    height: 50px;
    line-height: 50px;
    right: 0;
    top: 0;
    cursor: pointer;
    font-size: 45px;
    text-align: center;
  }

  .tab_btn_mask {
    position: absolute;
    right: 0;
    top: 0;
    border: 25px transparent solid;
    border-right-color: #fff;
    transform: translate(-25px, 25px) rotate(-45deg);
  }

  .qr_box {}

  .loginTab.divHide {
    display: none;
  }

  .valid_box {}

  .valid_input {
    border-radius: 0;
    height: 50px;
  }

  .valid_title {
    font-size: 20px;
    line-height: 32px;
    color: #505050;
    margin-bottom: 10px;
  }

  .valid_btn {
    width: 122px;
    margin-top: 15px;
  }
}

.animate__animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-iteration-count: 1;
}

@keyframes flipInY {
  0% {
    -webkit-transform: perspective(400px) rotateY(90deg) translateY(-50%);
    transform: perspective(400px) rotateY(90deg) translateY(-50%);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0
  }

  40% {
    -webkit-transform: perspective(400px) rotateY(-20deg) translateY(-50%);
    transform: perspective(400px) rotateY(-20deg) translateY(-50%);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in
  }

  60% {
    -webkit-transform: perspective(400px) rotateY(10deg) translateY(-50%);
    transform: perspective(400px) rotateY(10deg) translateY(-50%);
    opacity: 1
  }

  80% {
    -webkit-transform: perspective(400px) rotateY(-5deg) translateY(-50%);
    transform: perspective(400px) rotateY(-5deg) translateY(-50%);
  }

  to {
    -webkit-transform: perspective(400px) translateY(-50%);
    transform: perspective(400px) translateY(-50%);
  }
}

.animate__flipInY {
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  -webkit-animation-name: flipInY;
  animation-name: flipInY
}
